package com.ruoyi.SSL.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 托管域名管理对象 ssl_trusteeship_service_domain
 *
 * @author ruoyi
 * @date 2024-09-27
 */
public class SslTrusteeshipServiceDomain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 托管Id */
    private Long id;

    /** 所属托管服务器 */
    @Excel(name = "所属托管服务器")
    private Long stsId;
    private String stsName;

    private Long domainMainId;    //所属主域名Id

    /** 证书申请记录id */
    //=============》》弃用 sslApplyId字段
    @Excel(name = "证书申请记录id")
    private Long sslApplyId;

    /** 托管域名 */
    @Excel(name = "托管域名")
    private String sslDomain;

    private Integer daysDifference;


    private String publicKeyFilePath;

    private String privateKeyFilePath;

    //是否自动续签证书
    private String isAutoSsl;

    //证书文件地址
    private String sslDir;


    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expiredTime;

    public String getIsAutoSsl() {
        return isAutoSsl;
    }

    public void setIsAutoSsl(String isAutoSsl) {
        this.isAutoSsl = isAutoSsl;
    }

    public Integer getDaysDifference() {
        return daysDifference;
    }

    public void setDaysDifference(Integer daysDifference) {
        this.daysDifference = daysDifference;
    }

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public String getStsName() {
        return stsName;
    }

    public void setStsName(String stsName) {
        this.stsName = stsName;
    }

    public String getPublicKeyFilePath() {
        return publicKeyFilePath;
    }

    public void setPublicKeyFilePath(String publicKeyFilePath) {
        this.publicKeyFilePath = publicKeyFilePath;
    }

    public String getPrivateKeyFilePath() {
        return privateKeyFilePath;
    }

    public void setPrivateKeyFilePath(String privateKeyFilePath) {
        this.privateKeyFilePath = privateKeyFilePath;
    }

    public String getSslDir() {
        return sslDir;
    }

    public void setSslDir(String sslDir) {
        this.sslDir = sslDir;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setStsId(Long stsId)
    {
        this.stsId = stsId;
    }

    public Long getStsId()
    {
        return stsId;
    }

    public void setSslApplyId(Long sslApplyId)
    {
        this.sslApplyId = sslApplyId;
    }

    public Long getSslApplyId()
    {
        return sslApplyId;
    }

    public void setSslDomain(String sslDomain)
    {
        this.sslDomain = sslDomain;
    }

    public String getSslDomain()
    {
        return sslDomain;
    }

    public void setExpiredTime(Date expiredTime)
    {
        this.expiredTime = expiredTime;
    }

    public Date getExpiredTime()
    {
        return expiredTime;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public Long getDomainMainId() {
        return domainMainId;
    }

    public void setDomainMainId(Long domainMainId) {
        this.domainMainId = domainMainId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId()).append("sslDir", getSslDir())
            .append("stsId", getStsId()).append("privateKeyFilePath", getPrivateKeyFilePath())
            .append("sslApplyId", getSslApplyId()).append("publicKeyFilePath", getPublicKeyFilePath())
            .append("sslDomain", getSslDomain()).append("stsName", getStsName())
            .append("expiredTime", getExpiredTime()).append("daysDifference", getDaysDifference())
            .append("status", getStatus()).append("isAutoSsl", getIsAutoSsl())
            .append("createTime", getCreateTime()).append("domainMainId", getDomainMainId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
